<?php

namespace App\Http\Controllers;

use Illuminate\Support\Facades\Artisan;

class SystemController extends Controller
{
    public function generateCheckRecords(){
        return Artisan::call('check:record');
    }
    
    /**
     * 开销统计
     * @return int
     */
    public function generateCostStatistics(){
        return Artisan::call('generate:cost_statistics');
    }
    
    /**
     * 活跃用户统计
     * @return int
     */
    public function generateUserActiveStatistics(){
        return Artisan::call('generate:user_active_statistics');
    }
    
    /**
     * 收入统计
     * @return int
     */
    public function generateIncomeStatistics(){
        return Artisan::call('generate:income_statistics');
    }
    
    /**
     * 钻石产出
     * @return int
     */
    public function generateDiamondOutputStatistics(){
        return Artisan::call('generate:diamond_output');
    }
    
    /**
     * 钻石消耗
     * @return int
     */
    public function generateDiamondConsumeStatistics(){
        return Artisan::call('generate:diamond_consume_statistics');
    }
    
    /**
     * 金币统计
     * @return int
     */
    public function generateKkBalanceStatistics(){
        return Artisan::call('generate:kk_balance_statistics');
    }
    
    /**
     * 渠道商统计
     * @return int
     */
    public function generateChannelStatistics(){
        return Artisan::call('generate:channel_statistics');
    }

    /**
     * 珍珠产出
     * @return int
     */
    public function generatePearlOutputStatistics(){
        return Artisan::call('generate:pearl_output');
    }

    /**
     * 珍珠消耗
     * @return int
     */
    public function generatePearlConsumeStatistics(){
        return Artisan::call('generate:pearl_consume_statistics');
    }

    /**
     * 珍珠消耗
     * @return int
     */
    public function financeCabinPearlStream(){
        return Artisan::call('finance:pearl_stream');
    }


    /**
     * 珍珠消耗
     * @return int
     */
    public function financeRoomWealthStream(){
        return Artisan::call('finance:room_stream');
    }

    /**
     * IOS推广注册和充值统计
     */
    public function generateStatisticsGeneralize() {
        return Artisan::call('generate:generalize_statistics ');
    }
}
